home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / pmake / RCS / sys.mk,v < prev    next >
Encoding:
Text File  |  1990-11-16  |  3.6 KB  |  241 lines

  1. head     1.6;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.6
  10. date     90.11.15.23.36.05;  author rab;  state Exp;
  11. branches ;
  12. next     1.5;
  13.  
  14. 1.5
  15. date     89.08.31.16.11.01;  author rab;  state Exp;
  16. branches ;
  17. next     1.4;
  18.  
  19. 1.4
  20. date     89.01.11.19.34.38;  author mlgray;  state Exp;
  21. branches ;
  22. next     1.3;
  23.  
  24. 1.3
  25. date     88.11.10.13.40.45;  author ouster;  state Exp;
  26. branches ;
  27. next     1.2;
  28.  
  29. 1.2
  30. date     88.07.14.08.19.22;  author ouster;  state Exp;
  31. branches ;
  32. next     1.1;
  33.  
  34. 1.1
  35. date     88.03.24.19.51.26;  author deboor;  state Exp;
  36. branches ;
  37. next     ;
  38.  
  39.  
  40. desc
  41. @System makefile read on each execution of pmake
  42. @
  43.  
  44.  
  45. 1.6
  46. log
  47. @Add .cc (for C++ file) to list of suffixes.
  48. @
  49. text
  50. @#
  51. # System Makefile for:
  52. #    Sun3 running Sprite and a Bourne Shell that does error-checking
  53. # switching.
  54. #
  55. # These are the variables used to specify the nature of the system on which
  56. # pmake is running. These names may later be used in #if expressions for
  57. # conditional reading of the enclosed portion of the Makefile
  58. #
  59. sun=     Machine is a sun
  60. mc68000= so it has a Motorola 68000-family chip.
  61. sprite=     It runs Sprite.
  62. mc68020= It's a Sun3 so it has a 68020 microprocessor.
  63.  
  64. .SUFFIXES : .out .a .ln .o .c .cc .F .f .e .r .y .l .s .cl .p .h \
  65.         .c,v .cc,v .y,v .l,v .s,v .h,v
  66. .INCLUDES : .h
  67. .LIBS    : .a
  68.  
  69. #
  70. # Don't assume any dependencies for files without suffixes.
  71. #
  72. .NULL    : .h
  73.  
  74. YACC    = yacc
  75. YFLAGS    =
  76. LEX    = lex
  77. LFLAGS    =
  78. CC    = cc
  79. RM    = rm
  80. MV    = mv
  81. #if defined(vax) || defined(sun)
  82. AS    = as
  83. #else
  84. AS    = as -
  85. #endif
  86. PC    = pc
  87. PFLAGS    =
  88. CFLAGS    =
  89. AFLAGS    =
  90. RC    = f77
  91. RFLAGS    =
  92. FC    = f77
  93. EFLAGS    =
  94. FFLAGS    =
  95. LOADLIBES=
  96. CO    = co
  97. COFLAGS    =
  98. CI    = ci
  99. CIFLAGS    =
  100. AR    = ar
  101. ARFLAGS    = r
  102. LD    = ld
  103.  
  104. .c,v.c .y,v.y .l,v.l .s,v.s .h,v.h :
  105.     $(CO) $(COFLAGS) $(.IMPSRC) $(.TARGET)
  106.  
  107. .c.o :
  108.     $(CC) $(CFLAGS) -c $(.IMPSRC)
  109.  
  110. .p.o :
  111.     $(PC) $(PFLAGS) -c $(.IMPSRC)
  112.  
  113. .cl.o :
  114.     class -c $(.IMPSRC)
  115.  
  116. .e.o .r.o .F.o .f.o :
  117.     $(FC) $(RFLAGS) $(EFLAGS) $(FFLAGS) -c $(.IMPSRC)
  118.  
  119. .s.o :
  120.     $(AS) $(AFLAGS) -o $(.TARGET) $(.IMPSRC)
  121.  
  122. .y.o :
  123.     $(YACC) $(YFLAGS) $(.IMPSRC)
  124.     $(CC) $(CFLAGS) -c y.tab.c
  125.     $(RM) y.tab.c
  126.     $(MV) y.tab.o $(.TARGET)
  127.  
  128. .l.o :
  129.     $(LEX) $(LFLAGS) $(.IMPSRC)
  130.     $(CC) $(CFLAGS) -c lex.yy.c
  131.     $(RM) lex.yy.c
  132.     $(MV) lex.yy.o $(.TARGET)
  133.  
  134. .y.c :
  135.     $(YACC) $(YFLAGS) $(.IMPSRC)
  136.     $(MV) y.tab.c $(.TARGET)
  137.  
  138. .l.c :
  139.     $(LEX) $(LFLAGS) $(.IMPSRC)
  140.     $(MV) lex.yy.c $(.TARGET)
  141.  
  142. .s.out .c.out .o.out :
  143.     $(CC) $(CFLAGS) $(.IMPSRC) $(LOADLIBES) -o $(.TARGET)
  144.  
  145. .f.out .F.out .r.out .e.out :
  146.     $(FC) $(EFLAGS) $(RFLAGS) $(FFLAGS) $(.IMPSRC) \
  147.         $(LOADLIBES) -o $(.TARGET)
  148.     $(RM) -f $(.PREFIX).o
  149.  
  150. .y.out :
  151.     $(YACC) $(YFLAGS) $(.IMPSRC)
  152.     $(CC) $(CFLAGS) y.tab.c $(LOADLIBES) -ly -o $(.TARGET)
  153.     $(RM) y.tab.c
  154.  
  155. .l.out :
  156.     $(LEX) $(LFLAGS) $(.IMPSRC)
  157.     $(CC) $(CFLAGS) lex.yy.c $(LOADLIBES) -ll -o $(.TARGET)
  158.     $(RM) lex.yy.c
  159.  
  160. #
  161. # System search-path specifications.
  162. #
  163. .PATH.h: /sprite/lib/include /sprite/lib/include/$(MACHINE).md
  164. .PATH.a: /sprite/lib/$(MACHINE).md
  165. @
  166.  
  167.  
  168. 1.5
  169. log
  170. @Added -D_ASM to .s.o rule.
  171. @
  172. text
  173. @d15 2
  174. a16 2
  175. .SUFFIXES : .out .a .ln .o .c .F .f .e .r .y .l .s .cl .p .h \
  176.         .c,v .y,v .l,v .s,v .h,v
  177. @
  178.  
  179.  
  180. 1.4
  181. log
  182. @changes for adding sun4
  183. @
  184. text
  185. @@
  186.  
  187.  
  188. 1.3
  189. log
  190. @Change paths to correspond to new C library arrangement.
  191. @
  192. text
  193. @d30 2
  194. d76 2
  195. a77 2
  196.     rm y.tab.c
  197.     mv y.tab.o $(.TARGET)
  198. d82 2
  199. a83 2
  200.     rm lex.yy.c
  201.     mv lex.yy.o $(.TARGET)
  202. d87 1
  203. a87 1
  204.     mv y.tab.c $(.TARGET)
  205. d91 1
  206. a91 1
  207.     mv lex.yy.c $(.TARGET)
  208. d99 1
  209. a99 1
  210.     rm -f $(.PREFIX).o
  211. d104 1
  212. a104 1
  213.     rm y.tab.c
  214. d109 1
  215. a109 1
  216.     rm lex.yy.c
  217. @
  218.  
  219.  
  220. 1.2
  221. log
  222. @Set NULL suffix to ".h" so it won't automatically compile anything.
  223. @
  224. text
  225. @d112 2
  226. a113 2
  227. .PATH.h: /sprite/lib/include /sprite/att/lib/include
  228. .PATH.a: /sprite/lib /sprite/att/lib
  229. @
  230.  
  231.  
  232. 1.1
  233. log
  234. @Initial revision
  235. @
  236. text
  237. @d19 5
  238. a23 1
  239. .NULL    : .out
  240. @
  241.